#  一般函数都有名字
import functools
def decorate(f):
    @functools.wraps(f)
    def inner(x):
        print('Action!\n')
        res = f(x)
        print('finsh!')
        # return res
    return inner
@decorate
def eatapple(x):
    print('我吃了{}个苹果'.format(x))
    print(eatapple.__name__)
eatapple(5)

